+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
+Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtktoolbar.c: Fix leaks of results of
+ gtk_container_get_children(). (#68199, Damon Chaplin.)
+
Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
}
}
+static GtkWidget *
+get_first_child (GtkContainer *container)
+{
+ GList *children = gtk_container_get_children (children);
+ GtkWidget *result = children ? children->data : NULL;
+ g_list_free (children);
+
+ return result;
+}
+
static void
gtk_real_toolbar_style_changed (GtkToolbar *toolbar,
GtkToolbarStyle style)
if (child->label && !GTK_WIDGET_VISIBLE (child->label))
gtk_widget_show (child->label);
- box = (GtkWidget*)gtk_container_get_children (GTK_CONTAINER (child->widget))->data;
+ box = get_first_child (GTK_CONTAINER (child->widget));
if (GTK_IS_HBOX (box))
{
if (child->label && !GTK_WIDGET_VISIBLE (child->label))
gtk_widget_show (child->label);
- box = (GtkWidget*)gtk_container_get_children (GTK_CONTAINER (child->widget))->data;
+ box = get_first_child (GTK_CONTAINER (child->widget));
if (GTK_IS_VBOX (box))
{